import request from '@/utils/request'


// 查询列表
export function list(query) {
  return request({
    url: '/equipment/autofeeding/list',
    method: 'get',
    params: query
  })
}
//根据id查询自动投喂机
export function selectbyid(id) {
  return request({
    url: '/equipment/autofeeding/selectbyid/' + id,
    method: 'get',

  })
}
//新增自动投喂机
export function add(data) {
  return request({
    url: '/equipment/autofeeding/add',
    method: 'post',
    data: data
  })
}

//修改自动投喂机
export function edit(data) {
  return request({
    url: '/equipment/autofeeding/edit',
    method: 'post',
    data: data
  })
}

//删除自动投喂机
export function del(ids) {
  return request({
    url: '/equipment/autofeeding/delete/' +ids,
    method: 'delete'
  })
}

